<script>
	export default {
		onLaunch: function() {
			
			var that = this
			//保存登录token
			var token = uni.getStorageSync('token')
			that.globalData.token = token
			
			// 判断是否在微信中打开
			// if (typeof WeixinJSBridge === 'object' && typeof WeixinJSBridge.invoke === 'function') {
			//     console.log('当前页面在微信中打开');
			// 	// uni.reLaunch({
			// 	// 	url: "/pages/wechatlogin/wechatlogin"
			// 	// });
			// 	uni.switchTab({
			// 		url: "/pages/home/home"
			// 	});
			// } else {
			//     console.log('当前页面不在微信中打开');
			// 	uni.switchTab({
			// 		url: "/pages/home/home"
			// 	});
			// }
			
			//查看消息中心的值弹不弹窗
			var newsvalue = uni.getStorageSync('newsvalue')
			that.globalData.newsvalue = newsvalue
			
			//发货选择地址的值
			var address = uni.getStorageSync('address')
			that.globalData.address = address

			
		},

		onShow: function() {

		},

		onHide: function() {

		},

		globalData: {
			token: '',//登录token
			http: "https://www.gdruiduo.com/doll/" ,//正式地址
			// http: "http://120.77.176.33:9090/" ,//1测试地址
			// http: "http://120.55.52.136:9090/" ,//2测试地址
			newsvalue:'', //查看消息中心的值弹不弹窗
			address:[], //发货选择地址的值
		}

	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "uview-ui/index.scss";
		.player-container-id-dimensions {
		  width: 100% !important;
		  height: 1130rpx !important;
		}
		.video-js .vjs-tech{
			z-index: 1;
		}
		.player-container-id-dimensions.vjs-fluid {
		  padding-top: 0% !important;
		}
		uni-image>img, img {
			pointer-events: none;
			-webkit-pointer-events: none;
			-ms-pointer-events: none;
			-moz-pointer-events: none;
		}
		
		uni-image::before {
			content: ' ';
			position: absolute;
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			background: transparent;
			opacity: 0;
		}
</style>